home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
moonstonemadness.swf
/
scripts
/
__Packages
/
SideScroller
/
NegativeGround.as
< prev
next >
Wrap
Text File
|
2007-09-27
|
936b
|
38 lines
class SideScroller.NegativeGround
{
static var DEFAULT_NEGATIVE_GROUND_POSITION = 600;
function NegativeGround(__mcRef, __oParentObject, __nGroundPos)
{
this.mcRef = __mcRef;
this.oParentObject = __oParentObject;
if(__nGroundPos != undefined)
{
this.nGroundPos = __nGroundPos;
}
else
{
this.nGroundPos = SideScroller.NegativeGround.DEFAULT_NEGATIVE_GROUND_POSITION;
}
this.mcRef._visible = false;
var _loc2_ = this.mcRef.getBounds(this.oParentObject.__get__ParentLayer().__get__Ref());
this.nMinX = _loc2_.xMin;
this.nMaxX = _loc2_.xMax;
}
function getGroundAt()
{
return this.nGroundPos;
}
function doDestroy()
{
delete this.oParentObject;
}
function get StartPos()
{
return this.nMinX;
}
function get EndPos()
{
return this.nMaxX;
}
}